import module from '../../module'

export default name => {
    const root = `${module.code}/${name}/`
    const crud = $http.crud(root)
    //查询汽车站生成运行班次最后一天
    crud.getstationsrunbusinfoday = params => {
        return $http.get('/dispatch/common/getstationsrunbusinfoday', params)
    }
    //按车站生成运行班次
    crud.createenvbusinfobystation = params => {
        return $http.post('/dispatch/common/createenvbusinfobystation', params)
    }
    //查询某个汽车站生成运行班次天情况
    crud.getstationrunbusinfoday = params => {
        return $http.get('/dispatch/common/getstationrunbusinfoday', params)
    }
    return {
        ...crud
    }
}
